package com.msmall.community.common.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.common.model.Commend;

public interface CommendDao extends BaseDao<Commend, Long> {
	/**
	 * 获得2天时间内所有的有效的推荐，
	 * @return
	 */
	public List<Commend> getAllAvailable2D();
	
	/**
	 * 
	 * @param type 推荐类型1BBS 2SPACE
	 * @param eid
	 * @return
	 */
	public Commend getByTypeAndId(Short type, Long eid);
}
